export interface ${entity} {
<#list table.fields as field>
    ${field.propertyName}: ${convertType(field.propertyType)}; // ${field.comment!}
</#list>
}

<#-- 自定义函数：将 Java 数据类型转换为 TypeScript 数据类型 -->
<#function convertType javaType>
    <#if javaType == "String">
        <#return "string">
    <#elseif javaType == "int" || javaType == "Integer" || javaType == "long" || javaType == "Long" || javaType == "float" || javaType == "Float" || javaType == "double" || javaType == "Double">
        <#return "number">
    <#elseif javaType == "boolean" || javaType == "Boolean">
        <#return "boolean">
    <#elseif javaType == "Date">
        <#return "string"> <!-- 或者使用 Date 类型 -->
    <#elseif javaType == "BigDecimal">
        <#return "number"> <!-- 或者使用 string 类型 -->
    <#elseif javaType?starts_with("List<")>
        <#return "${javaType[5..-2]}[]"> <!-- 将 List<T> 转换为 T[] -->
    <#elseif javaType?starts_with("Map<")>
        <#return "{ [key: string]: any }"> <!-- 将 Map<K, V> 转换为 { [key: string]: V } -->
    <#else>
        <#return "any"> <!-- 默认返回 any -->
    </#if>
</#function>